package com.baitiaojun.api.domain.user;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("关注用户的分组信息")
public class FollowingGroup {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("用户分组id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(readOnly = true, value = "用户id")
    private Long userid;

    @ApiModelProperty(value = "分组名称")
    private String name;

    @ApiModelProperty(value = "分组类型", readOnly = true)
    private String type;

    @ApiModelProperty(readOnly = true)
    private Date createtime;

    @ApiModelProperty(readOnly = true)
    private Date updatetime;

    @ApiModelProperty(hidden = true, value = "分组个数")
    private Integer count;

    @ApiModelProperty(hidden = true)
    private List<UserInfo> sameCategoryUserInfoList;
}